package org.anjan.dp.templatemethod;

public class VeggieHoagie extends Hoagie {
    private String[] cheeseUsed = new String[]{"Provolone"};
    private String[] patties = new String[]{"potato","otherveggypatty"};
    private String[] veggies = new String[]{"cucumber", "tomato"};


    @Override
    public void addMeat() {

    }

    @Override
    public void addCheese() {
        System.out.println("Adding cheese");
        for (String cheese : cheeseUsed) {
            System.out.println("cheese = " + cheese);

        }
    }

    @Override
    public void addVeggies() {
        System.out.println("Adding veggies");
        for (String veggy : veggies) {
            System.out.println("veggy = " + veggy);
        }
    }

    @Override
    public void addPatty() {
        System.out.println("Adding patty");
        for (String patty : patties) {
            System.out.println("patty = " + patty);
        }
    }

    @Override
    public boolean customerWantsMeans() {
        return false;
    }
}
